# coding=utf-8
from jsonpath import jsonpath

from inter_auto.script.wework import WeWork


class Member(WeWork):


    def __init__(self):
        super().__init__()
        self.token = self.get_token()
        self.get_member_list_url = f"https://qyapi.weixin.qq.com/cgi-bin/user/list_id?access_token={self.token}"


    def member_list(self):
        """
        获取部门成员信息
        :return:
        """
        res = self.post(self.get_member_list_url).json()
        return res

if __name__ == '__main__':
    member = Member()
    res = member.member_list()
    print(res)

